import java.util.Arrays;
import java.util.List;
import java.util.Random;

/**
 * @date 2022/9/14 13:32
 * @author: Akie
 * @description: 一二食堂的菜品

 */

public class OneAndTwoMall {
    private String[] str1 = {"襄阳牛肉面","羊杂面","麻辣烫","包子","打饭窗口"};
    private List<String> list1 = Arrays.asList(str1);
    private String[] str2 = {"烧鹅饭","咖喱饭","麻辣香锅","青花椒鱼","鸡公煲","烤盘饭"};
    private List<String> list2 = Arrays.asList(str2);


    public int getMall(){
        double i =(Math.random());
        int num = 0;
        if (i < 0.5){
            num = 1;
        }else {
            num = 2;
        }
        return num;
    }

    public String getMeal1() {
        Random rand = new Random();
        String meal = list1.get(rand.nextInt(list1.size()));
        return meal;
    }
    public String getMeal2() {
        Random rand = new Random();
        String meal = list2.get(rand.nextInt(list2.size()));
        return meal;
    }

}
